package com.hongli.blog.service.impl;

import com.hongli.blog.entity.RoleAuthorityDao;
import com.hongli.blog.service.RoleAuthorityservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author ZERO
 * @Date 2021/11/16 11:35
 **/
@Service
public class RoleAuthorityserviceimpl implements RoleAuthorityservice {

    @Autowired
    private RoleAuthorityservice roleAuthorityservice;

    @Override
    public RoleAuthorityDao SelectRoleAuthorityVJ(String authorityname){
        return roleAuthorityservice.SelectRoleAuthorityVJ(authorityname);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void InsertRoleAuthority(int roleid,int authorityid) {
        roleAuthorityservice.InsertRoleAuthority(roleid,authorityid);
    }
}
